#ifndef H_APP_MAINAPP_H
#define H_APP_MAINAPP_H

#include "../core/threadpool.h"
#include "../chat/chatmessagehandle.h"

namespace QinChat{
    namespace App{
        class CMainApp{
            public:
                explicit CMainApp();
                ~CMainApp();

            public:
                void Init();
                static CMainApp& GetInstace();
                Core::CThreadPool& GetThreadPool();
                Chat::CChatMessageHandleRegist& GetChatMessageHandleRegist();

            private:
                Core::CThreadPool m_mainThreadPool;
                Chat::CChatMessageHandleRegist m_CChatMessageHandle;


            private:
                static CMainApp* m_mainApp;
        };
    }
}

#endif // !  H_APP_MAINAPP_H
